//SPDX-FileCopyrightText:2022-2024 深圳市同心圆网络有限公司
//SPDX-License-Identifier: GPL-3.0-only

.sider {
  position: relative;
  width: 200px;
  background-color: #1d2330;
}

.extra_item {
  padding-left: 15px;
}

.active_menu {
  color: white !important;
  font-weight: 600;
  background-color: #555;
  border-radius: 6px;
}

.active_sub_menu {
  color: white !important;
  font-weight: 600;
}

.workbench_menu {
  color: #aaa;
  margin-left: 4px;
  margin-right: 20px;
  padding-left: 20px;
  margin-top: 10px;
  cursor: pointer;
  font-size: 14px;

  &:hover {
    color: white;
    background-color: #555;
    border-radius: 6px;
  }

  .workbench_icon {
    width: 15px;
    margin-top: -4px;
    margin-right: 3px;
  }
}

.user {
  display: flex;
  align-items: center;
  padding: 20px 0;
  position: relative;
  // border: 1px solid red;

  .avatar {
    margin: 0 10px 0 8px;
    padding-left: 12px;
    overflow: hidden;

    img {
      width: 32px;
      height: 32px;
      border-radius: 50%;
    }
  }

  .name {
    color: #888c93;
    font-size: 12px;
    line-height: 30px;
  }

  .expand {
    position: absolute;
    right: 15px;
    font-size: 20px;
    color: white;
    top: 5px;
    cursor: pointer;
  }
}

.project_menu {
  .menu_title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    margin-left: 10px;
    padding: 5px 0px;
    padding-left: 12px;
    margin-right: 10px;

    &:hover {
      color: white;
      font-weight: 600;
      background-color: #555;
      border-radius: 6px;
    }

    .menu_icon_wrap {
      margin-right: 10px;

      .icon_wrap {
        margin-right: 1px;
        padding: 3px;
        border-radius: 4px;

        &:hover {
          background-color: rgb(190 190 190 / 20%);
        }

        i {
          display: inline-block;
          width: 20px;
          height: 14px;
          vertical-align: text-top;
          background-repeat: no-repeat;
          background-size: contain;

          svg {
            color: orange;
            font-size: 20px;
          }
        }

      }
    }
  }

  .project_child_menu {
    position: relative;

    .project_child_wrap {
      margin-left: 10px;

      .project_child_title {
        color: #aaa;
        opacity: 1;
        padding-left: 32px;
        line-height: 1.0em;
        padding-top: 6px;
        padding-bottom: 6px;
        margin: 4px 0px;

        &:hover {
          color: white;
          font-weight: 600;
          background-color: #555;
          border-radius: 6px;
        }

        &.close {
          opacity: 0.6;
        }

        .badge {
          position: absolute;
          left: 20px;
          top: 4px;

          >sup {
            padding: 0 2px;
            box-shadow: none;
          }
        }

        .name {
          display: inline-block;
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
          width: 100px;
          cursor: pointer;
        }
      }

      .project_sub_menu {
        margin-left: 44px;
        cursor: pointer;
        color: #aaa;

        &:hover {
          color: white;
          font-weight: 600;
        }
      }
    }
  }
}


// renderPjItemChange
.pj_change_model {
  font-size: 14px;
  text-align: center;

  h1 {
    font-family: 550;
  }

  p {
    color: #666;
    font-size: 12px;
  }

  .btn_wrap {
    margin-top: 20px;

    button {
      margin: 0 10px;
    }
  }
}

.work_model {
  color: #666;

  .text {
    font-size: 12px;
  }

  p {
    margin: 10px 0;

    span {
      color: rgb(39, 39, 39);
    }
  }

  .btn_wrap {
    text-align: center;

    button {
      margin: 0 10px;
    }
  }
}

.beworkingPopover {
  width: 406px;
  // height: 260px;
  padding: 20px 22px;
  color: #202021;
  border-radius: 8px;

  .content {
    margin-bottom: 15px;
  }

  .hint {
    span {
      color: #000;
      font-weight: 550;
    }
  }

  .state {
    display: flex;
    justify-content: space-around;
    margin: 8px 0 20px;
    padding: 12px;
    color: #a5a6a6;
    background: #f6f6f8;
    border-radius: 6px;

    >div {
      >span {
        padding: 5px 12px;
        color: #fff;
        background: #000;
        border-radius: 6px;
      }
    }
  }

  .roger_btn {
    text-align: center;
  }
}

.project_info_wrap {
  padding-left: 57px;
  color: white;
}